package com.quectel.core.module.securitypatrol.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author caolu
 * @email louis.cao@quectel.com
 * @date 2022/05/07 14:09
 */
@Data
@Schema
public class SecurityPatrolSubjectDto implements Serializable {

    /**
     *
     */
    @Schema(description = "")
    private Long id;

    /**
     * 租户id
     */
    @Schema(description = "租户id")
    private Long tenantId;

    @Schema(description = "巡检种类1安防巡检2质量检查3环境保洁4绿化养护")
    private Byte category;

    /**
     * 巡检分组(字典值) 1通用分组2...
     */
    @Schema(description = "巡检分组(字典值)")
    @NotNull
    private Byte groupType;

    /**
     * 巡检项目名称
     */
    @Schema(description = "巡检项目名称")
    @NotNull
    @Length(min = 1, max = 80)
    private String subject;

    /**
     * 巡检指导
     */
    @Schema(description = "巡检指导")
    @NotNull
    @Length(min = 1, max = 1000)
    private String proposal;

    /**
     * 创建人
     */
    @Schema(description = "创建人")
    private String creator;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 修改人
     */
    @Schema(description = "修改人")
    private String editor;

    /**
     * 修改时间
     */
    @Schema(description = "修改时间")
    private Date editTime;

    /************非数据库字段 start ************/
    @Schema(description = "巡检类型名称")
    private String groupTypeName;
    /************非数据库字段 end **************/
}
